<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
    'links'=>array('Berita','Posting'),
));

?>

<br />
<h4>Posting</h4>
<hr/>
<div class="alert alert-success fade in">
<i class="icon-remove close" data-dismiss="alert"></i>
<strong>Posting!</strong>
Pastikan Kegiatan Yang Akan Diposting Sudah Benar.
</div>
<br />

<?php $this->widget('bootstrap.widgets.TbDetailView',array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		//'jabatan',
		array(
			'name'=>'id_bidang',
			'value'=>Bidang::model()->findByPk($model->id_bidang)->nama_bidang,
			),
			'nama_kegiatan',
		array(
			'name'=>'tanggal_kegiatan',
			'value'=>date("d-m-Y,strtotime($model->tanggal_kegiatan)"),
			),	
		array(
			'name'=>'uraian',
			'type'=>'html',
			'value'=>$model->uraian,
			),		
		
	),
)); ?>


<div class="form-actions">
	<?php
	if($model->posting==1){
	?>
	<a class="btn btn-sm btn-primary" href="<?php echo Yii::app()->createUrl('admin/kegiatan/prosesPosting',array('id'=>$id)) ?>">Batalkan Posting </a>
	<?php
	}else{
	?>
	<a class="btn btn-sm btn-primary" href="<?php echo Yii::app()->createUrl('admin/kegiatan/prosesPosting',array('id'=>$id)) ?>">Posting</a>
	<?php
	}
	?>
</div>